package models

import (
	"github.com/jinzhu/gorm"
	"kop/modules/pay/entity"
)

func GetDouble(dB *gorm.DB, roleID int32) (entity.Double, error) {

	var data = entity.Double{RoleID: roleID}
	return data, dB.FirstOrCreate(&data).Error
}

//func SaveDouble(dB *gorm.DB, double *entity.Double) {
//
//	if err := dB.Save(double).Error; err != nil {
//		panic(err)
//	}
//}
